export const imgerr = {
  inserted: function(el, options) {
    el.src = el.src || options.value
    // console.log(el)
    el.onerror = function() {
      el.src = options.value
    }
  },
  // 事件监听是一直有效的，赋值的就不是，所以这里要再次赋值
  componentUpdated(el, options) {
    el.src = el.src || options.value
  }
}
